package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.SysRolePermission;
import com.rockcent.mall.lib.dto.SysPermissionDto;
import com.rockcent.mall.lib.dto.SysRolePermissionDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh on 2016/12/16.
 *
 */
public interface SysRolePermissionRepositoryCustom {

    List<SysRolePermissionDto> findByRoleIdInAndUserInfoId(List<Long> roleIdList, Long userInfoId);
}
